package org.jeecg.modules.third.oapi.alct56.utils;

import java.io.Serializable;

public class Sm2KeyVo implements Serializable {

    private String publicKey;
    private String privateKey;

    public Sm2KeyVo() {
    }

    public String getPublicKey() {
        return this.publicKey;
    }

    public String getPrivateKey() {
        return this.privateKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Sm2KeyVo)) {
            return false;
        } else {
            Sm2KeyVo other = (Sm2KeyVo)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$publicKey = this.getPublicKey();
                Object other$publicKey = other.getPublicKey();
                if (this$publicKey == null) {
                    if (other$publicKey != null) {
                        return false;
                    }
                } else if (!this$publicKey.equals(other$publicKey)) {
                    return false;
                }

                Object this$privateKey = this.getPrivateKey();
                Object other$privateKey = other.getPrivateKey();
                if (this$privateKey == null) {
                    if (other$privateKey != null) {
                        return false;
                    }
                } else if (!this$privateKey.equals(other$privateKey)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof Sm2KeyVo;
    }

    @Override
    public int hashCode() {
        int result = 1;
        Object $publicKey = this.getPublicKey();
        result = result * 59 + ($publicKey == null ? 43 : $publicKey.hashCode());
        Object $privateKey = this.getPrivateKey();
        result = result * 59 + ($privateKey == null ? 43 : $privateKey.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "Sm2KeyVo(publicKey=" + this.getPublicKey() + ", privateKey=" + this.getPrivateKey() + ")";
    }

}
